---
title: Center
description: "`Center` is a component that aligns the child elements in the center within the component."
storybook: components-center--basic
source: components/center
style: components/center/center.style.ts
---

```tsx preview
<Center h="xs" bg="bg.contrast" color="fg.contrast">
  This is the Center
</Center>
```

## Usage

:::code-group

```tsx [package]
import { Center } from "@yamada-ui/react"
```

```tsx [alias]
import { Center } from "@/components/ui"
```

```tsx [monorepo]
import { Center } from "@workspaces/ui"
```

:::

```tsx
<Center />
```

## Props

<PropsTable name="center" />
